package com.csjung.games.gamenori.client.ioc;

import com.google.gwt.place.shared.PlaceController;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.web.bindery.event.shared.EventBus;

import com.csjung.games.gamenori.client.GamenoriShell;
import com.csjung.games.gamenori.client.desktop.GamenoriShellDesktop;
import com.csjung.games.gamenori.shared.GamenoriRequestFactory;

public class GamenoriShellProvider implements Provider<GamenoriShell> {
  private final GamenoriRequestFactory requestFactory;
  private final EventBus bus;
  private final PlaceController placeController;

  @Inject
  public GamenoriShellProvider(GamenoriRequestFactory requestFactory,
      EventBus bus,
      PlaceController placeController) {
    this.requestFactory = requestFactory;
    this.bus = bus;
    this.placeController = placeController;
  }
  public GamenoriShell get() {
    return new GamenoriShellDesktop(requestFactory, bus, placeController);
  }

}